export const config = {
  // httpHost: "http://localhost:7001",
  httpHost: "https://api.lxyy.fun",
  httpHostTest: "http://192.168.1.41:9180", // 本地

  version: "1.0",
};
export enum APIUrl {
  Auth = "/auth/auth/",
  Asset = "/media/asset/",
  User = "/v1/user/",
  Email_Register = '/email/register/',
  Email_Forgot_password = '/email/forgotpassword/',
  Note = '/note/',
  Thumb = '/thumb/',
  Tool = '/tool/',
  Common = '/common/',
  Admin_AccessLog = '/admin/accesslog/'
}

export enum APIMethod {
  Add = "add",
  Delete = "delete",
  Updated = "updated",
  List = "list",
  Get = "get",
  Token = "token",
  Register = "register",
  ForgotPassword = "forgotpassword",
  Login = "login",
  LoginOut = "loginOut",
  Password = "password",
  Code = "code",
  RegHref = 'reghref',
}

export enum RespResultCode {
  Success = 0,
  Error = 1,
  TokenEmpty = 2,
  TokenExpire = 3,
  TokenMiss = 4,
}

export enum NetStatusCode {
  Success = 200,
  Error = 500,
}

export interface WXResp {
  statusCode: number;
  errMsg: string;
  header: any;
  data: any;
}

export interface StatusResp {
  code: RespResultCode;
  error: string;
  token: string;
}

export interface StatusInfo {
  code: number;
  error: string;
}

export type RespInfo<T> = {
  info: T;
  list: T[];
  total?: number;
  page?: number;
  status: StatusInfo;
}

